const fs = require('fs');
const path = require("path")
//常规异常的捕获
try {
    let filePath = path.join(__dirname, 'test');
    let fileContent = fs.readFileSync(filePath);
} catch (error) {
    console.log(error);
}

process.on("uncaughtException", (err) => {
    console.log(err);
})